package com.mjl.shops.view;

import android.content.Context;
import android.util.AttributeSet;

import androidx.appcompat.widget.AppCompatTextView;

import com.mjl.shops.base.ShopApp;

public class IconTextView extends AppCompatTextView {

    public IconTextView(Context context) {
        this(context,null);
    }

    public IconTextView(Context context, AttributeSet attrs) {
        this(context, attrs,0);
    }

    public IconTextView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView();
    }

    //设置ICON
    private void initView() {
        try {
            setTypeface(ShopApp.mIconFont);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
